﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    /// <summary>
    /// 轨迹
    /// </summary>
    public class TrackModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Required]
        public Guid TrackId { get; set; }
        /// <summary>
        /// 出发时间
        /// </summary>
        [Required(ErrorMessage = "请输入出发时间")]
        public DateTime DepartureTime { get; set; }
        /// <summary>
        /// 出发地
        /// </summary>
        [Required(ErrorMessage = "请输入出发地")]
        public string DeparturePlace { get; set; }
        /// <summary>
        /// 到达时间
        /// </summary>
        [Required(ErrorMessage = "请输入到达时间")]
        public DateTime ArrivingTime { get; set; }
        /// <summary>
        /// 到达地
        /// </summary>
        public string ArrivingPlace { get; set; }
        /// <summary>
        /// 交通工具
        /// </summary>
        [Required(ErrorMessage = "请选择交通工具")]
        public string Trasportation { get; set; }
        /// <summary>
        /// 车次或车牌号
        /// </summary>
        [Required(ErrorMessage = "请输入车次或车牌号")]
        public string TrackCode { get; set; }
    }
}
